package edu.sctu.zhuyingzhi.month201506.day20150614.copyFile;

import java.io.*;

/**
 * Created by user13 on 2015/6/14.
 */
public class CopyMethod {
    public void copy() throws IOException {
        File inFile = new File("D:/cc.cpp");
        File outFile = new File("D:/out.txt");

        FileReader in = new FileReader(inFile);
        FileWriter out = new FileWriter(outFile);
        char[] x = new char[13131];

        int end = in.read(x,0,1757);
        System.out.println(end);
        out.write(x,0,end);
        in.close();
        out.close();

    }

}
